package org.freespace.service;

import org.freespace.model.JmxSample;
import org.freespace.model.JmxThreadgroup;
import com.baomidou.mybatisplus.extension.service.IService;
import org.freespace.vo.JmeterConcurrencyThreadVO;
import org.freespace.vo.JmeterThreadVO;

import java.util.List;

/**
 * <p>
 * 压测机器表 服务类
 * </p>
 *
 * @author liuqi
 * @since 2023-05-12
 */
public interface IJmxThreadgroupService extends IService<JmxThreadgroup> {

    void deleteJmxThreadgroupByJmxId(Integer jmxId);

    List<JmxThreadgroup> list(Integer jmxId);

    List<JmxSample> samplelist(Integer jmxId, Integer threadGroupId);

    void enableThreadGroup(Integer threadGroupId, Integer isEnable) throws Exception;

    void updateJmxThread(JmeterThreadVO req) throws Exception;

    void updateJmxConcurrencyThread(JmeterConcurrencyThreadVO req) throws Exception;

    void updateJmxArrivalsThread(JmeterConcurrencyThreadVO req) throws Exception;
}
